package main

import (
	"server/src/game"
	"server/src/initial"
	"server/src/initial/config"
	"server/src/initial/db"
	"server/src/initial/log"
	"server/src/initial/server"
)

func main() {
	//初始化命令行参数
	initial.InitFlag()
	//配置文件
	config.InitViper()
	//日志
	log.InitLogger()
	//数据库
	db.InitMysql()
	//cache
	db.InitRedis()
	//game
	go game.InitGame()
	//busi_cont
	server.Initserver()
}
